/*! \file
 *      \brief The third user program - never ending loop that either busy 
 *             waits in a system un-friendly way or waits in a very system
 *             friendly way.
 *
 */

#include <scwrapper.h>

void
main(int argc, char* argv[])
{
	prints("Prog2: Started\n");

	while (1) {
		/* When testing the preemptive scheduler, replace 0 in the c pre-processor
		   if below with a 1.  */
#if 1
		volatile long curr_time = 0;

		while (curr_time++ < 1000000);
#else
		pause(100);
#endif

		prints("Prog2: Pang\n");
	}
}
